import { createSlice } from "@reduxjs/toolkit";

const infoSlice = createSlice({
    name:"infoSpace",
    initialState:{
        userInfo:null 
    },
    reducers:{
        changeUserInfo(state,{payload}){
            state.userInfo = payload;
        }
    }
})

export const {
    changeUserInfo 
} = infoSlice.actions 


export const App_userInfo = (state:any) =>state.MyInfo.userInfo

export default infoSlice.reducer